home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 02 Useful Techniques / 08 Zarozinski / src / ffllapi / DefuzzVarObj.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.8 KB  |  85 lines

  1. //
  2. // File:    DefuzzVarObj.h    
  3. //
  4. // Purpose:    Base class for Defuzzification methods.  Decendents of this object are
  5. //            of the output variable and contains all logic to calculate the
  6. //            defuzzification
  7. //
  8. // Copyright ⌐ 2001 Louder Than A Bomb! Software
  9. //
  10. // This file is part of the FFLL (Free Fuzzy Logic Library) project (http://ffll.sourceforge.net)
  11. // It is released under the BSD license, see http://ffll.sourceforge.net/license.txt for the full text.
  12. //
  13.  
  14. // include files
  15. #include "DefuzzVarObj.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22.  
  23. //
  24. // Function:    DefuzzVarObj()
  25. // 
  26. // Purpose:        Constructor for COGDefuzzVarObj
  27. //
  28. // Arguments:    
  29. //
  30. //        FuzzyOutVariable* _parent - Output variable this object is part of
  31. //
  32. // Returns:
  33. //
  34. //        nothing
  35. //
  36. // Author:    Michael Zarozinski
  37. // Date:    8/01
  38. // 
  39. // Modification History
  40. // Author    Date        Modification
  41. // ------    ----        ------------
  42. //
  43. //
  44.  
  45. DefuzzVarObj::DefuzzVarObj(FuzzyOutVariable* _parent) : FFLLBase(_parent)
  46. {
  47.     // empty
  48. }
  49.  
  50. //
  51. // Function:    ~DefuzzVarObj()
  52. // 
  53. // Purpose:        Destructor for COGDefuzzVarObj
  54. //
  55. // Arguments:    
  56. //
  57. //        none
  58. //
  59. // Returns:
  60. //
  61. //        nothing
  62. //
  63. // Author:    Michael Zarozinski
  64. // Date:    8/01
  65. // 
  66. // Modification History
  67. // Author    Date        Modification
  68. // ------    ----        ------------
  69. //
  70. //
  71. DefuzzVarObj::~DefuzzVarObj()
  72. {
  73.     // empty
  74.  
  75. }; // end DefuzzVarObj::~DefuzzVarObj()
  76.  
  77. /////////////////////////////////////////////////////////////////////
  78. ////////// Trivial Functions That Don't Require Headers /////////////
  79. /////////////////////////////////////////////////////////////////////  
  80.  
  81. FuzzyOutVariable* DefuzzVarObj::get_parent() const
  82.     return static_cast<FuzzyOutVariable*>(FFLLBase::get_parent());
  83. };
  84.